<?php

namespace app\controller\v1;

use app\model\OrderLogModel;
use app\validate\OrderLogValidate;

class OrderLog extends System
{
    public function list()
    {
        $validate = new OrderLogValidate();
        if (!$validate->scene('list')->check($this->params)) {
            return $this->errorJson($validate->getError());
        }

        $orderLogModel = new OrderLogModel();
        $res = $orderLogModel->list($this->params);

        return $this->successJson($res);
    }
}